package com.pan.lovedate.acl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pan.lovedate.model.acl.Permission;

import java.util.List;
import java.util.Map;

public interface PermissionService extends IService<Permission> {

    //查询所有菜单
    List<Permission> queryAllPermission();

    //递归删除菜单
    void removeChildById(Long id);


    void saveRolePermissionRealtionShip(Long roleid,Long[] permissionIds);

    Map<String,Object> findPermissionByRoleId(Long roleId);
}
